<?php
/**
 * @version		$Id: view.html.php 21484 2011-06-08 00:57:51Z dextercowley $
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access
defined('_JEXEC') or die;

jimport('joomla.application.component.view');

/**
 * HTML Article View class for the Content component
 *
 * @package		Joomla.Site
 * @subpackage	com_content
 * @since		1.5
 */
class Je_YoutubeViewHome extends JView
{
	protected $items;

	function display($tpl = null)
	{
		$this->items = $this->get('Items');
		
		$this->_prepareDocument();

		parent::display($tpl);
	}

	/**
	 * Prepares the document
	 */
	protected function _prepareDocument()
	{
		//add script & stylesheet
		$doc =& JFactory::getDocument();
		
		$doc->addScript(JURI::base().'components/com_je_youtube/html/js/jquery-1.6.2.min.js" type="text/javascript');		
		$doc->addStyleSheet(JURI::base().'components/com_je_youtube/html/css/prettyPhoto.css' );
		$doc->addScript(JURI::base().'components/com_je_youtube/html/js/jquery.prettyPhoto.js" type="text/javascript');
		
		$title = 'JE Youtube';

		// If there is a pagebreak heading or title, add it to the page title
		if (!$title)
		{
			$this->document->setTitle($title);
		}

		#$this->document->setMetaData('robots', 'noindex, nofollow');
	}
}
